// pages/index/msgDetail/msgDetail.js
import http from '../../../utils/http.js';
import {noticeDetail} from '../../../utils/notice.js';
var WxParse = require('../../../wxParse/wxParse.js');
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    id: '',
    detail: {},
    title:'',
    content: '',
    time:''
  },
  getDetail: function () {
    var that = this;
    let id = that.data.id;
    WxParse.wxParse('article', 'html', noticeDetail.content, that, 5);
    that.setData({
      title: noticeDetail.title,
      time: noticeDetail.time
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
      this.getDetail();
  },
})